#include "connectionmanager.h"

#include <QByteArray>
#include <QDateTime>

ConnectionManager::ConnectionManager()
{
    maximumConnections = 8;
}

bool ConnectionManager::canAddConnection() const
 {
     return (connections.size() < maximumConnections);
 }

 void ConnectionManager::addConnection(NNTPWireClient *client)
 {
     connections << client;
 }

 void ConnectionManager::removeConnection(NNTPWireClient *client)
 {
     connections.remove(client);
 }

 int ConnectionManager::maxConnections() const
 {
     return maximumConnections;
 }

 void ConnectionManager::setMaxConnections(int connections)
 {
     maximumConnections = connections;
 }
